class RenameCategoriesToColleges < ActiveRecord::Migration
  def self.up
    ActiveRecord::Base.transaction do
      rename_table :categories, :colleges
      rename_column :disciplines, :category_id, :college_id
    end
  end

  def self.down
    ActiveRecord::Base.transaction do
      rename_table :colleges, :categories
      rename_column :disciplines, :college_id, :category_id
    end
  end
end
